package com.jianglin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="House对象", description="房屋信息")
public class House implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "楼层")
    private Integer storey;

    @ApiModelProperty(value = "门牌号")
    private String numbers;

    @ApiModelProperty(value = "状态：0未入住，1已入住")
    private Integer status;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入住日期")
    private Date intoDate;

    @ApiModelProperty(value = "所属楼栋ID")
    private Integer buildingId;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "面积")
    private Double area;
}
